<form class="form-floating" novalidate="novalidate" ng-submit="saveItem(item)">
    <fieldset>
        <legend><span class="{{settings.icon}}"></span>{{settings.cmd}}</legend>
        <div class="form-group filled">
            <input type="hidden" class="form-control" ng-model="item.id" ng-disabled="!settings.editing"
                   required>
            <input type="hidden" class="form-control" ng-model="item.scope" ng-disabled="!settings.editing"
                   required>
            <input type="hidden" class="form-control" ng-model="item.scopeId" ng-disabled="!settings.editing"
                   required>
            <label class="control-label">参数名</label>
            <input type="text" ng-model="item.varName" ng-disabled="!settings.editing"/>
        </div>
        <div class="form-group filled">

            <label class="control-label">参数值</label>
            <textarea cols="20" rows="10" class="form-control" ng-model="item.varValueExpr" ng-disabled="!settings.editing"></textarea>
        </div>
        <div class="form-group">
            <button type="button" ng-click="saveVariable()" class="btn btn-lg btn-primary" ng-hide="!settings.editing">保存</button>
        </div>
    </fieldset>
</form>
